home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / include / sys / socket.h < prev    next >
C/C++ Source or Header  |  1996-11-30  |  309b  |  23 lines

  1. #ifndef _SYS_SOCKET_H
  2. #define _SYS_SOCKET_H
  3.  
  4. #ifdef AMITCP
  5.  
  6. #ifndef _TYPES_H_
  7. #include <sys/types.h>
  8. #define SYS_TYPES_H
  9. #endif
  10. #include "netinclude:sys/socket.h"
  11.  
  12. #else
  13.  
  14. /* Support for socket pairs only */
  15. #define AF_UNIX 1
  16. #define SOCK_STREAM 1
  17.  
  18. #endif
  19.  
  20. extern int socketpair(int, int, int, int *);
  21.  
  22. #endif
  23.